﻿<Application xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation"
             xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
             xmlns:pqvm="clr-namespace:ClientOverflow.ViewModels.PostQuestion;assembly=ClientOverflow.ViewModels" 
             xmlns:vw="clr-namespace:ClientOverflow.UserControls;assembly=ClientOverflow.UserControls" 
             xmlns:lvm="clr-namespace:ClientOverflow.ViewModels.Login;assembly=ClientOverflow.ViewModels" 
             xmlns:upvm="clr-namespace:ClientOverflow.ViewModels.UserProfileViewModels;assembly=ClientOverflow.ViewModels" xmlns:qlvm="clr-namespace:ClientOverflow.ViewModels.QuestionsListViewModels;assembly=ClientOverflow.ViewModels" xmlns:qvvm="clr-namespace:ClientOverflow.ViewModels.QuestionViewViewModels;assembly=ClientOverflow.ViewModels"
             xmlns:urvm="clr-namespace:ClientOverflow.ViewModels.Register;assembly=ClientOverflow.ViewModels" xmlns:tvm="clr-namespace:ClientOverflow.ViewModels.TagsViewModels;assembly=ClientOverflow.ViewModels" xmlns:ulvm="clr-namespace:ClientOverflow.ViewModels.UsersListViewModels;assembly=ClientOverflow.ViewModels" 
             xmlns:ksvm="clr-namespace:ClientOverflow.ViewModels.KnowledgeSummaryViewModels;assembly=ClientOverflow.ViewModels" StartupUri="MainWindow.xaml">

    <Application.Resources>
        <ResourceDictionary>
            <ResourceDictionary.MergedDictionaries>
                <ResourceDictionary Source="Themes\ExpressionDark.xaml"/>
                <ResourceDictionary >
                    <DataTemplate DataType="{x:Type pqvm:PostQuestionViewModel}">
                        <vw:PostQuestion/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type lvm:LoginViewModel}">
                        <vw:UserLogin/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type urvm:UserRegistrationViewModel}">
                        <vw:UserRegistration/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type upvm:UserProfileViewModel}">
                        <vw:UserProfile/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type qlvm:QuestionsListViewModel}">
                        <vw:QuestionsList/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type qvvm:QuestionViewViewModel}">
                        <vw:QuestionView/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type tvm:TagsViewModel}">
                        <vw:TagsView/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type ulvm:UsersListViewModel}">
                        <vw:UsersList/>
                    </DataTemplate>
                    <DataTemplate DataType="{x:Type ksvm:KnowledgeSummaryViewModel}">
                        <vw:KnowledgeSummary/>
                    </DataTemplate>                    
                </ResourceDictionary>
            </ResourceDictionary.MergedDictionaries>
        </ResourceDictionary>
    </Application.Resources>
</Application>
